home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 11432 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.5 KB

  1. Path: keats.ugrad.cs.ubc.ca!not-for-mail
  2. From: c2a192@ugrad.cs.ubc.ca (Kazimir Kylheku)
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: Re: [Q]: Very Long Integer Library
  5. Date: 14 Mar 1996 07:57:02 -0800
  6. Organization: Computer Science, University of B.C., Vancouver, B.C., Canada
  7. Message-ID: <4i9fkeINN8bk@keats.ugrad.cs.ubc.ca>
  8. References: <5DA85A3CDF@iis.nsk.su> <4i7fnl$9v9@linux.cpsc.ucalgary.ca>
  9. NNTP-Posting-Host: keats.ugrad.cs.ubc.ca
  10. Keywords: long integers GCC
  11.  
  12. In article <4i7fnl$9v9@linux.cpsc.ucalgary.ca>,
  13. David Taylor <davidt@cpsc.ucalgary.ca> wrote:
  14.  >In article <5DA85A3CDF@iis.nsk.su>,  <EPG@iis.nsk.su> wrote:
  15.  >>Hi all!
  16.  >>
  17.  >>Please please help me to find Very Long Integer Library (source) for 
  18.  >>C++. I'd be grateful if you can advise me any places in the Internet.
  19.  >>
  20.  >>Sincerely, Pavel.
  21.  >
  22.  >This might help:  GCC/G++ has a type "long long int" built in that is
  23.  >twice as large as an int (64-bits on most computers).  All arithmetic
  24.  >operations are supported.  Should be in DJGPP and EMX for DOS and
  25.  >OS/2, too.
  26.  
  27. It probably doesn't help.  The "long long" is not a standard type in the
  28. C language, but a gratuitous extension.
  29.  
  30. It is also far, far from being a ``very large integer''. He probably wants
  31. a multi-precision integer library suitable for representing numbers in the
  32. hundreds of (decimal) digits.
  33.  
  34. I think there is such a GNU library. There is one inside PGP called MPILIB,
  35. which is optimized for speed, and is fairly well tested by all the
  36. people who use PGP (outside of the US, anyway).
  37. -- 
  38.  
  39.